import "./nav.css";
import { getData } from "api/getData";
import { navURL } from "./config";

import render from "./nav.art";

getData(navURL)
  .then((data) => {
    // console.log(data);
    let html = render({ navData: data });
    document.querySelector("#index-nav").innerHTML = html;
  })
  .catch((err) => console.log(err));
